﻿using Inovout.Repositories;
using Inovout.YunYao.Models;
using NHibernate.Criterion;

namespace Inovout.YunYao.Repositories
{
    public class SolutionRepository : DataObjectRepository<Solution>
    {
        public Solution FindByCode(int code)
        {
            return base.Find(Expression.Eq("Code", code));
        }
    }
}
